<template>
  <div class="headerlist">
    <div class="headerItem" v-for="(item,index) in 6" :key="index">
      <div class="top">
        <div class="left">
          <img src="@/assets/1.jpg" alt="图片" />
        </div>
        <div class="right">
          <span>已完成</span>
          <span>588</span>
        </div>
      </div>
      <div class="footer">
        <span>前天88</span>
        <span>周288</span>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  //生命周期 - 创建完成
  created() {},

  //DOM挂载完毕
  mounted() {},
  methods: {}
};
</script>

<style lang='less' scoped>
.headerlist {
  background-color: #fff;
  padding: 0px 40px 20px 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  .headerItem {
      display: flex;
      flex-direction: column;
    margin-right: 12px;
    margin-top: 14px;
    width: 268px;
    height: 110px;
    background-color: #fff;
    border-radius: 5px;
    border: 1px solid #f2f2f2;
    box-shadow: 0 2px 3px #ccc;
    &:nth-of-type(4n) {
      margin-right: 0;
    }

    .top{
        flex: 3;
        display: flex;
        justify-content: space-around;
        align-items: center;
        .left{
            img{
                width: 50px;
                height: 50px;
            }
        }
        .right{
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            span{
                &:nth-of-type(1){
                    font-size: 16px;
                    color: #2a2a2a;
                }
                &:nth-of-type(2){
                    font-weight: 600;
                    font-size: 18px;
                    color: #054dbd;
                }

            }
        }

    }
    .footer{
        border-top: 1px solid #f1f1f1;
        flex:1;
        display: flex;
        justify-content: space-around;
        align-items: center;
        span{
            color: #a9a9a9;
            font-size: 12px;
        }
    }
  }
}
</style>